.container{
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  @media screen and (min-width: 768px) {
    gap: 20px;
  }

  .viewer{
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: calc(56.25% + 40px);
    flex-shrink: 0;
    flex-grow: 0;
    border: 1.66px solid var(--black);
    border-radius: 20px;
    box-sizing: border-box;
    background-color: var(--white);
    overflow: hidden;
    @media screen and (min-width: 768px) {
      padding-bottom: calc(80% + 60px);
      border: 2.66px solid var(--black) !important;
    }

    .pagination{
      position: absolute;
      right: 10px;
      top:6px;
      z-index: 2;
      line-height: 1em;
      font-size: 12px;
      background-color: rgba(var(--black-alpha), 0.1);
      padding: 4px 8px;
      border-radius: 4px;
      span{
        font-size: 12px;
        margin-right: 4px;
      }
    }

    :global(.ant-carousel){
      position: absolute;
      top: 30px;
      left: 30px;
      right: 30px;
      bottom: 30px;
      width: calc(100% - 60px);
      height: calc(100% - 60px);
    }
    
    :global(.ant-carousel .slick-list){
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    
    :global(.ant-carousel .slick-track){
      height: 100%;
    }
    :global(.ant-carousel .slick-slider){
      height: 100%;
    }
    :global(.ant-carousel .slick-slider .slick-slide div:nth-child(1)){
      height: 100%;
    }

    :global .slick-arrow{
      color: var(--black) !important;
      opacity: 1;
      z-index: 3;
      
      &.slick-prev{
        left: -20px !important;
      }
      
      &.slick-next{
        right: -20px !important;
      }
    }

    .slide{
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 12px;

      :global .ant-image{
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }
      
      :global .ant-image-mask{
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      :global .ant-image-mask-info{
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      :global .ant-image-img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
      }
      
      img{
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
      }
    }
  }

  .thumbs{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: auto;
    flex-shrink: 0;

    .thumb-placeholder{
      position: relative;
      width: 100%;
      min-height: 100px;
      border: 1px dashed var(--gray-3);
      border-radius: 6px;
      padding: 12px;
      color: var(--gray-7);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 100%;
    }

    .thumb{
      position: relative;
      flex: 0 0 auto;
      width: 64px;
      height: 64px;
      border: 2.66px solid var(--black);
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;

      &.active{
        border-color: var(--main-7);
      }
      &:not(.active):hover{
        border-color: var(--main-6);
      }

      img{
        width: 100%;
        height: 100%;
        object-fit: scale-down;
        vertical-align: middle;
      }
    }
  }
}